package com.rocksdata.mc.entity;

import java.io.Serializable;

/**
 * Created by 陈堂正 on 2017/3/15.
 */

public class AnnouncementInfo implements Serializable{
    public static final int TYPE_NOTICE = 0;
    public static final int TYPE_PUBLIC_NOTICE = 1;
    public static final int IS_READ = 1;

    private String noticeCode;
    private String publisherCode;
    private String departmentCode;
    private String departmentName;
    private String type;
    private String title;
    private String content;
    private String videoCoverPic;
    private String publishedTime;
    private boolean isRead;

    public String getNoticeCode() {
        return noticeCode;
    }

    public void setNoticeCode(String noticeCode) {
        this.noticeCode = noticeCode;
    }

    public String getPublisherCode() {
        return publisherCode;
    }

    public void setPublisherCode(String publisherCode) {
        this.publisherCode = publisherCode;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getVideoCoverPic() {
        return videoCoverPic;
    }

    public void setVideoCoverPic(String videoCoverPic) {
        this.videoCoverPic = videoCoverPic;
    }

    public String getPublishedTime() {
        return publishedTime;
    }

    public void setPublishedTime(String publishedTime) {
        this.publishedTime = publishedTime;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    @Override
    public boolean equals(Object o) {
        if(o == null){
            return false;
        }
        AnnouncementInfo info = null;
        try {
            info = (AnnouncementInfo) o;
        }catch (Exception e){

        }
        if(info == null || info.noticeCode == null){
            return false;
        }
        return info.noticeCode.equals(this.noticeCode);
    }
}
